/*
 * 这个文件是分页跳转专用，不可用于ajax分页
 * @Author: xiezuobing(948466)[435321508@qq.com] 
 * @Date: 2017-12-18 15:18:46 
 * @Last Modified by: xiezuobing
 * @Last Modified time: 2017-12-27 20:37:05
 */
(function(){
  var paginationMenu = $(".pagination_menu>li");
  var pagination = $(".pagination_page>.pageItem");
  var queryObject = getQueryObject();
  // pathname
  paginationMenu.click(function(){
    var pageSize = $.trim($(this).find('a').text());
    queryObject['pageSize'] = pageSize;
    delete queryObject['pageNo'];
    window.location.href = getUrlByQuery(queryObject);
  });
  
  pagination.click(function(){
    var disabled = $(this).attr('disabled');
    var active = $(this).hasClass('active');
    if(!disabled && !active) {
      var pageNo = $.trim($(this).attr('pageNo'));
      queryObject['pageNo'] = pageNo;
      window.location.href = getUrlByQuery(queryObject);
    }
  });
}())